]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: fix a warning
authorDan Winship <danw@gnome.org>
Thu, 8 Sep 2011 20:50:32 +0000 (16:50 -0400)
committerDan Winship <danw@gnome.org>
Thu, 15 Sep 2011 12:34:29 +0000 (08:34 -0400)
Check for click in keyboardBox rather than Main.keyboard.actor, since
the latter won't exist when the keyboard is hidden.

https://bugzilla.gnome.org/show_bug.cgi?id=658598

js/ui/messageTray.js

index f2721cf1bbf8e77143892cb1dd0c7bf06bcf0a66..6de4b7a53529641636d95156bec16457199aeb80 100644 (file)
@@ -284,7 +284,8 @@ FocusGrabber.prototype = {
         let source = event.get_source();
         switch (event.type()) {
             case Clutter.EventType.BUTTON_PRESS:
-                if (!this.actor.contains(source) && !Main.keyboard.actor.contains(source))
+                if (!this.actor.contains(source) &&
+                    !Main.layoutManager.keyboardBox.contains(source))
                     this.emit('button-pressed', source);
                 break;
             case Clutter.EventType.KEY_PRESS: